package com.hefei.customer.info.dao;

import java.util.List;

import com.hefei.customer.info.po.Contact;
import com.hefei.customer.info.po.Customer;
import com.hefei.service.framework.exception.DaoException;

public interface ICustomerDao {

	public void save(Customer customer)throws DaoException;
	
	public void update(Customer customer)throws DaoException;
	
	public void delete(Integer id)throws DaoException;
	
	public Customer getCustomerById(Integer id)throws DaoException;
	
	public Customer getCustoemrByName(String name)throws DaoException;
	
	/**
	 * 获取该客户的所有联系人
	 * @return
	 */
	public List<Contact> getContactById(Integer customerId)throws DaoException;
	/**
	 * 获取总数
	 * @param user
	 * @return
	 */
	public Long getDatagridTotal(Customer customer)throws DaoException;
}
